using System;
using BookUtil;
using Shape;
using StudentUtil;

class Entry
{
    public static void Main()
    {
        Console.WriteLine("<<---- 1. Book Info Practice ---->>");

        Book myBook0 = new Book();
        Console.WriteLine("No args constructor");
        Console.WriteLine(myBook0);

        Book myBook1 = new Book(1L, "1984", "9781433202445", 20.0D);
        Console.WriteLine("Arged constructor");
        Console.WriteLine(myBook1);

        Console.WriteLine("--------");

        Console.WriteLine("<<---- 2. Shape Practice ---->>");

        IShape shape = new Rect(10D, 20D);
        Console.WriteLine(shape);
        Console.WriteLine("Area:" + shape.Area() + " Perimeter:" + shape.Perimeter());

        IShape shape1 = new Circle(10D);
        Console.WriteLine(shape1);
        Console.WriteLine("Area:" + shape1.Area() + " Perimeter:" + shape1.Perimeter());

        Student student = new Student("WeiYuan", "04181010", 100.0D, 100.0D, 100.0D);
        Console.WriteLine(student);
    }
}
